/**
* Created by weiyongming on 2019-01-25
*/
import React, { Component } from 'react';
import {Navigation} from 'react-native-navigation';
import {
    AppRegistry,
    StyleSheet,
    Text,
    View,
    Image,
    Platform,
    TouchableOpacity,
    InteractionManager
} from 'react-native';

class BaseComponet extends Component{

  constructor(props) {
    super(props);
    this.state = {
      isTopVis:true,
      isTabVis:false,
      backcolorStr:'white',
    };
    Navigation.events().bindComponent(this);
  }
  static get options(){
    return{
      topBar:{
        visible:true,
        leftButtons:[{
          id:'buttonOne',
          icon:require('../image/black_fanhui.png'),
          color:'black',
        }],
      },
      bottomTabs:{
        visible: false,
      }
    }
  }


  render(){
    return(
      <View style={styles.container}>
            
      </View>
     );
  }
  componentWillMount() {

  }
  componentDidMount(){
    // Navigation.events().registerNavigationButtonPressedListener((event) => {});
  }
  navigationButtonPressed({ buttonId }) {
    console.log('===='+buttonId.id);
    Navigation.pop(this.props.componentId);
  }

}

const styles = StyleSheet.create({
  container: {
    flex: 1,
    backgroundColor: 'green'
  },
});

export default BaseComponet;